package com.example.location;

import android.os.Handler;
import android.os.Message;

import com.example.myfirstapp.MainActivity;

public class ListenerHandler extends Handler{
	
	MainActivity mainActivity;
	
	public ListenerHandler(MainActivity mainActivity) {
		this.mainActivity = mainActivity;
	}
	
	public void handleMessage(Message msg) {
        switch (msg.what) {
            case LocationService.UPDATE_ADDRESS:
//                 	activity.mAddress.setText((String) msg.obj);
                break;
            case LocationService.UPDATE_LATLNG:
            	String message = (String) msg.obj;
            	mainActivity.mLatLng.setText(message);
                break;
        }
    }

}
